# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
 -------------------------------------------------
    File Name:     urls.py
    Description:   
 -------------------------------------------------
 """
from rest_framework import routers

from apps.api_tests.views.interface import TestInterFaceViewSet
from apps.api_tests.views.interface_cases import InterFaceCaseViewSet

# 创建一个路由器对象
router = routers.SimpleRouter()
# 注册视图集合到路由器中

# 测试接口管理
router.register('interfaces', TestInterFaceViewSet)  # 接口管理
router.register('cases', InterFaceCaseViewSet)  # 接口用例管理
# router.register(r'run', InterFaceCaseViewSet)

urlpatterns = []
urlpatterns += router.urls
